package com.dsp.dao.impl;

import org.hibernate.Session;
import org.hibernate.Transaction;

import com.core.util.GenericDAOHibernate;
import com.dsp.bean.InsureResultsSub;
import com.dsp.dao.InsureResultsSubDAO;

public class InsureResultsSubDAOImpl extends GenericDAOHibernate<InsureResultsSub, Long> implements InsureResultsSubDAO {

	@Override
	public void delete(Long pk) {
		Session session = getHibernateTemplate().getSessionFactory().openSession();
		Transaction tx = session.beginTransaction();
		session.delete(" delete from insure_results_sub where main_id="+pk);
		tx.commit();
	}

}
